export default {
  props: {
    to: {
      type: String,
      require: true
    },
    tag: {
      type: String,
      default: "a"
    }
  },
  methods: {
    handler() {
      this.$router.push(this.to)
    }
  },
  render() {
    return <this.tag onclick={this.handler}>{this.$slots.default}</this.tag>
  }
}